package com.sgs.carbon.web.modules.common.dal.redis;

import com.sgs.carbon.starter.redis.core.RedisKeyDefine;
import com.sgs.carbon.starter.security.core.LoginUser;

import static com.sgs.carbon.starter.redis.core.RedisKeyDefine.KeyTypeEnum.STRING;
import static com.sgs.carbon.starter.redis.core.RedisKeyDefine.TimeoutTypeEnum.DYNAMIC;

/**
 * System Redis Key 枚举类
 *
 * @author Dave Liu
 * @date 2021-10-07
 */
public interface SysRedisKeyConstants {

    /**
     * %s 为 sessionId
     */
    RedisKeyDefine LOGIN_USER = new RedisKeyDefine("登陆用户的缓存", "login_user:%s", STRING, LoginUser.class, DYNAMIC);

    /**
     * %s 为 uuid
     */
    RedisKeyDefine CAPTCHA_CODE = new RedisKeyDefine("验证码的缓存", "captcha_code:%s", STRING, String.class, DYNAMIC);

}
